﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HouseSecretary.HouseForm
{
    public partial class HouseSrcBulkPubForm : Base.MdiChildForm
    {
        public HouseSrcBulkPubForm()
        {
            InitializeComponent();
        }

        protected override void InitToolButtons()
        {
            //base.InitToolButtons();
            List<Model.Buttons> buttonList = new List<Model.Buttons>();
            Model.Buttons buttonsModel;

            buttonsModel = new Model.Buttons();
            buttonsModel.BtnCaption = "&Q.我的房源";
            buttonsModel.BtnType = Model.ButtonType.queryAdvance;
            buttonList.Add(buttonsModel);

            buttonsModel = new Model.Buttons();
            buttonsModel.BtnCaption = "&R.群发目标";
            buttonsModel.BtnType = Model.ButtonType.refresh;
            buttonList.Add(buttonsModel);

            buttonsModel = new Model.Buttons();
            buttonsModel.BtnCaption = "&A.查看发布结果";
            buttonsModel.BtnType = Model.ButtonType.add;
            buttonList.Add(buttonsModel);

            buttonsModel = new Model.Buttons();
            buttonsModel.BtnCaption = "&C.关闭";
            buttonsModel.BtnType = Model.ButtonType.close;
            buttonList.Add(buttonsModel);

            this.Tag = buttonList;
        }

        /// <summary>
        /// 关闭
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected override void ButtonClose(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Close();
        }



    }
}
